<?php
class Notificationscontroller {
	
	/**
	 * Registry object reference
	 */
	private $registry;
	
	/**
	 * 
	 * Nofication request controller
	 * @param Registry $registry
	 */
	public function __construct( Registry $registry)
	{
		$this->registry = $registry;
		$urlBits = $this->registry->getObject('url')->getURLBits();
		
		$user = $this->registry->getObject('authenticate')->getUser(); // current user
		$userID = $user->getUserID();
		$currentprofileID = $user->getCurrentProfile();
		
		require_once( FRAMEWORK_PATH . 'controllers/notifications/notifications.php');
		$notifications = new Notificatons($registry, $user, $user->getCurrentProfile());
		
		if( isset( $urlBits[1] ) )
		{
			switch( $urlBits[1] )
			{
				case 'view':
					{
						$notifications->viewNotifications();
					}
					break;
				case 'markread':
					{
						
					}
					break;
				case 'markunread':
					{
						
					}
					break;
				default:
					break;		
			}
		}
	}
}

?>
